package chapter7;

public class Factorial {
	
	int fact(int n){
		int result;
		
		if(n==1)
			return 1;
		else
			result = n * fact(n - 1);
		
		return result;
	}

}
